home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-03 | 3.6 KB | 122 lines | [TEXT/MACv] |
- { Issue an alert message. }
- {$ALERT 'This conversion script should only be used on unmodified MacApp 2.0 sources.'}
-
- { Directories we need to prompt for... }
- {$SETC MacAppInput = '$Which folder contains the MacApp sources?'}
- {$SETC MacAppOutput = '$Please select the THINK MacApp Folder:'}
- {$SETC MacAppExamples = '$Please select the “•Samples From MacApp•” folder:'}
-
- { directories used by the converter }
- {$SETC MAPInterfaces = (MacAppInput)'Interfaces:PInterfaces:'}
- {$SETC MALibraries = (MacAppInput)'Libraries:'}
- {$SETC PrivateInterfaces = (MacAppInput)'Libraries:PrivateInterfaces:'}
- {$SETC Templates = (MacAppOutput)'Templates:'}
- {$SETC OutputDir = (MacAppOutput)'MacApp Source:'}
-
- { compile-time variables }
-
- {$SETC qPerform = FALSE}
- {$SETC qDebugTheDebugger = FALSE}
- {$SETC qHasForward = FALSE}
-
- { These are the standard USES clause changes. }
-
- { Unit dependencies: any unit that USES the first unit in each $DEPEND directive
- must also USE the subsequent units. }
-
- {$DEPEND ULoMem SysEqu Devices}
- {$DEPEND UMacAppUtilities Traps ULoMem}
- {$DEPEND UViewCoords UMacAppUtilities}
- {$DEPEND UMemory UPatch}
- {$DEPEND UMacApp UObject UViewCoords UMemory UFailure UMenuSetup UList}
- {$DEPEND UInspector UObject UList}
- {$DEPEND UDialog UList UAssociation UMacApp UTEView}
- {$DEPEND UPrinting PrintTraps}
-
- { Additional USES requirements }
-
- {$USES UDialog UList UAssociation}
- {$USES UInspector UObject UList}
- {$USES UFailure UMacAppUtilities UDebug}
-
- { Any uses of these units should be removed }
- {$NOUSES UFailure UMacApp}
- {$NOUSES UMacApp UInspector}
-
- { Remove USES of the standard Mac interfaces which are built in to THINK Pascal. }
-
- {$NOUSES * Controls Desk Devices Dialogs DiskInit Errors Events Files Fonts Lists Memory Menus}
- {$NOUSES * OSEvents OSUtils Packages Quickdraw Resources Scrap SCSI SegLoad TextEdit ToolUtils}
- {$NOUSES * Types Windows}
-
- {$NOUSES * MemTypes Quickdraw OSIntf ToolIntf PackIntf}
-
- { input and output directories }
- {$OUTPUT OutputDir}
-
- { Where to find implementation include files }
- {$INCLUDES (MacAppInput)'Libraries:'}
-
- { Where to find .Diff files. }
- {$DIFFS (MacAppOutput)'Diffs:'}
-
- { Turn off compatibility mode for the MacApp sources proper. }
- {$PORTABLE-}
-
- { Two special interface files }
- {$DIR MAPInterfaces}
- {$INPUT 'ULoMem.p'}
- {$INPUT 'UViewCoords.p'}
-
- { The MacApp sources. The files we're skipping will be converted based in templates. }
- {$INPUT PrivateInterfaces}
- {$SKIP 'UObject.p'}
- {$SKIP 'UMacApp.p'}
- {$SKIP 'UDebug.p'}
- {$SKIP 'UPrinting.p'}
-
- { Allow multi-suffix files to be processed with $INPUT <directory> }
- {$SUFFIX+}
- { The template files for UMacApp et. al. }
- {$INPUT Templates}
-
- { Turn suffix filtering on again. }
- {$SUFFIX-}
-
- { Turn on compatibility mode for the samples. }
- {$PORTABLE+}
-
- { The sample programs }
- {$SETC SampleDir (MacAppInput)'Examples:Cards:'}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'Cards:'}
- {$INPUT SampleDir}
-
- {$SETC SampleDir (MacAppInput)'Examples:DemoDialogs:'}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'DemoDialogs:'}
- {$INPUT SampleDir}
-
- {$SETC SampleDir (MacAppInput)'Examples:DemoText:'}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'DemoText:'}
- {$INPUT SampleDir}
-
- {$SETC SampleDir (MacAppInput)'Examples:DrawShapes:'}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'DrawShapes:'}
- {$INPUT SampleDir}
-
- {$SETC SampleDir (MacAppInput)'Examples:Nothing:'}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'Nothing:'}
- {$INPUT SampleDir}
-
- {$SETC SampleDir (MacAppInput)'Examples:Calc:'}
- {$SETC SrcApp = SampleDir}
- {$NOUSES UCalc Printing}
- {$INCLUDES SampleDir}
- {$OUTPUT (MacAppExamples)'Calc:'}
- {$INPUT SampleDir}
-
-